import { useRoutes } from 'react-router-dom';
import { Routes_List } from './routes';
import React, { Suspense } from 'react'

const Router: React.FC = () => {
  const RouterView = () => useRoutes(Routes_List)
  return (
    <Suspense>
      <RouterView></RouterView>
    </Suspense>  
  )
}

export default Router